import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import MyButton from '@/components/MyButton.vue'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.component('MyButton', MyButton) // 全局注册组件

//这个挂载操作要在所有组件注册完成后执行
app.mount('#app')
